import { EntityModel } from "@midwayjs/orm";
import {Column, PrimaryColumn} from 'typeorm'

@EntityModel('userinfo')
export class User {
    @PrimaryColumn({type: 'bigint'})
    id:number;

    @Column()
    avatarUrl:string;

    @Column()
    nickName:string;

    @Column()
    openid:string;

    @Column()
    username:string;
    
    @Column()
    sex:string;

    @Column()
    phone:string;

    @Column()
    address:string;

}